home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Sgtty.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  1.4 KB  |  85 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __SGTTY_H
  7. #define __SGTTY_H 1
  8.  
  9. #define    HUPCL    01
  10. #define    XTABS    02
  11. #define    LCASE    04
  12. #define    ECHO    010
  13. #define    CRMOD    020
  14. #define    RAW    040
  15. #define    ODDP    0100
  16. #define    EVENP    0200
  17. #define ANYP    0300
  18. #define    NLDELAY    001400
  19. #define    TBDELAY    002000
  20. #define    CRDELAY    030000
  21. #define    VTDELAY    040000
  22. #define BSDELAY 0100000
  23. #define ALLDELAY 0177400
  24.  
  25. #define    CR0    0
  26. #define    CR1    010000
  27. #define    CR2    020000
  28. #define    CR3    030000
  29. #define    NL0    0
  30. #define    NL1    000400
  31. #define    NL2    001000
  32. #define    NL3    001400
  33. #define    TAB0    0
  34. #define    TAB1    002000
  35. #define    NOAL    004000
  36.  
  37. #define    FF0    0
  38. #define    FF1    040000
  39. #define    BS0    0
  40. #define    BS1    0100000
  41.  
  42. struct sgttyb {
  43.     char    sg_ispeed;
  44.     char    sg_ospeed;
  45.     char    sg_erase;
  46.     char    sg_kill;
  47.     int    sg_flags;
  48. };
  49.  
  50. struct ltchars {
  51.     char    t_suspc;
  52.     char    t_dsuspc;
  53.     char    t_rprntc;
  54.     char    t_flushc;
  55.     char    t_werasc;
  56.     char    t_lnextc;
  57. };
  58.  
  59. #define B0    0
  60. #define B50    1
  61. #define B75    2
  62. #define B110    3
  63. #define B134    4
  64. #define B150    5
  65. #define B200    6
  66. #define B300    7
  67. #define B600    8
  68. #define B1200    9
  69. #define    B1800    10
  70. #define B2400    11
  71. #define B4800    12
  72. #define B9600    13
  73. #define EXTA    14
  74. #define EXTB    15
  75.  
  76. #define FIOCLEX        (('f'<<8)|1)
  77. #define FIONCLEX    (('f'<<8)|2)
  78. #define    TIOCHPCL    (('t'<<8)|2)
  79. #define    TIOCGETP    (('t'<<8)|8)
  80. #define    TIOCSETP    (('t'<<8)|9)
  81. #define    TIOCEXCL    (('t'<<8)|13)
  82. #define    TIOCNXCL    (('t'<<8)|14)
  83.  
  84. #endif
  85.